<h1>Listing phieu_nhaps</h1>

<table>
  <tr>
    <th>Tai san</th>
    <th>Nhan vien</th>
    <th>Ngay nhap</th>
    <th>Trang thai</th>
    <th>So luong</th>
  </tr>

<% @phieu_nhaps.each do |phieu_nhap| %>
  <tr>
    <td><%= phieu_nhap.tai_san_id %></td>
    <td><%= phieu_nhap.nhan_vien_id %></td>
    <td><%= phieu_nhap.ngay_nhap %></td>
    <td><%= phieu_nhap.trang_thai %></td>
    <td><%= phieu_nhap.so_luong %></td>

    <td><%= link_to 'Show', phieu_nhap %></td>
    <td><%= link_to 'Edit', edit_phieu_nhap_path(phieu_nhap) %></td>
    <td><%= link_to 'Destroy', phieu_nhap, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New PhieuNhap', new_phieu_nhap_path %>
